package com.hua.nailcampus.acl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.nailcampus.acl.model.Approval;
import com.hua.nailcampus.acl.model.Role;
import com.hua.nailcampus.acl.model.vo.ApprovalVo;

import java.util.List;

/**
 * @Author:chenjianhua
 * @Date:2023/12/1 22:23
 * @Version 1.8
 */
public interface ApprovalService extends IService<Approval> {
    void saveApproval(Approval approval);

    void updateApproval(Approval approval);

    List<Approval> getApproval(Role role);

    List<ApprovalVo> getUnProcessApproval(Integer userId,Role role);

    List<ApprovalVo> getUserApproval(Integer userId,Integer roleId);

    ApprovalVo getApprovalById(Integer id);
}
